﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:codeplexControls="clr-namespace:Codeplex.Controls;assembly=Codeplex.Controls.Adorner"
             x:Class="Codeplex.Controls.Sample.Adorner.App"
             >
    <Application.Resources>
        <ResourceDictionary>
                        
            <ControlTemplate x:Key="MyAdornerControlTemplate" TargetType="codeplexControls:Adorner">
            	<Grid>
            		<Grid.RowDefinitions>
            			<RowDefinition />
            			<RowDefinition />
            			<RowDefinition />
            		</Grid.RowDefinitions>
            		<Grid.ColumnDefinitions>
            			<ColumnDefinition />
            			<ColumnDefinition />
            			<ColumnDefinition />
            		</Grid.ColumnDefinitions>

            		<Border Grid.Row="0" Grid.Column="0" x:Name="TopLeftAdorner"/>
            		<Border Grid.Row="0" Grid.Column="1" x:Name="TopCenterAdorner" >
            			<TextBlock Text="Adorn Me!"/>
            		</Border>
            		<Border Grid.Row="0" Grid.Column="2" x:Name="TopRightAdorner" />
            		<Border Grid.Row="1" Grid.Column="0" x:Name="CenterLeftAdorner" />
                    <Border Grid.Row="1" Grid.Column="1" x:Name="ContentBorder" BorderThickness="2" BorderBrush="Aqua" IsHitTestVisible="False" />
                    <Border Grid.Row="1" Grid.Column="2" x:Name="CenterRightAdorner">
                        <Button>
                            <TextBlock Text="Close" />
                        </Button>
                    </Border>
                    <Border Grid.Row="2" Grid.Column="0" x:Name="BottomLeftAdorner" />
            		<Border Grid.Row="2" Grid.Column="1" x:Name="BottomCenterAdorner" />
            		<Border Grid.Row="2" Grid.Column="2" x:Name="BottomRightAdorner" />
            	</Grid>
            </ControlTemplate>

        </ResourceDictionary>        
    </Application.Resources>
</Application>
